package exception;

public class ThrowDemo {
    public static void main(String[] args) {
        /*
        Student jk = new Student();
        jk.setAge(666);
        System.out.println(jk.getAge());

         */


//
//        Student jk = new Student();
//        try {
//            jk.setAge(20);
//            System.out.println("我的年纪为"+jk.getAge()+"岁");
//        }catch (Exception e){
//            System.out.println("年龄输入异常！");
//        }







    }

}
